/*
 ============================================================================
 Page	     : 104
 Name        : shoes2.c
 Date	     : 20210403
 Author      : Hbue 18060333
 Copyright   : Your copyright notice
 Description : 计算多个不同鞋码对应的脚长
 ============================================================================
 */

#include <stdio.h>
#define ADJUST 7.31				// 字符常量
int main(void)
{
	const double SCALE = 0.333;		// const 变量

	printf("Shoe size (men's)     foot length\n");
	double shoe = 3.0;
	double foot = 0;
	while(shoe < 18.5)			/* while循环开始 */
	{					/* 块开始 	*/
		foot = SCALE * shoe + ADJUST;
		printf("%10.1f %15.2f inches\n", shoe, foot);
		shoe = shoe + 1;
	}					/* 块结束 	*/
	printf("If the shoe fits, wear it.\n");

	return 0;
}

